package Server;

import java.awt.*;

public class FieldPlayer {
    private int health = 100;
    private Point location = new Point(0, 0);
    private String name = "Player";
    private String nick = "";
    private int id = -1;
    private long latency = -1;
    private double angle = 0;
    public FieldPlayer(int ide, String nam, String nick, Point loc, int health) {
            name = nam;
            location = loc;
            id = ide;
    }
    public void Set(int ide, String nam, Point loc, int health, double angle2) {
            name = nam;
            location = loc;
            id = ide;
            angle = angle2;
    }
    public long getLatency() {
            return latency;
    }
    public void setLatency(long l) {
            latency = l;
    }
    public int getHealth() {
            return health;
    }
    public Point getLoc() {
            return location;
    }
    public String getName() {
            return name;
    }
    public int getId() {
            return id;
    }
    public double getAngle() {
    	return angle;
    }
    public void setAngle(double ang) {
    	angle = ang;
    }
}
                               